<?php

$app   = 'frontend';
$debug = true;

include_once(dirname(__FILE__).'/../../bootstrap/soaptest.php');

$options = array(
  'classmap' => array(
	'Array'	=> 'ckGenericArray'
  ),
);

$c = new ckTestSoapClient($options);

$cuenta='08210016';
$nip='';
$biblioteca=1;

$c->Prueba()
  ->is('', true);

$c->ListarQuejas()
  ->isType('', 'NULL')
  ->isType('', 'stdClass');

$c->ValidaUsuario($cuenta,'')
  ->is('', true);
  
$c->PPendientes($cuenta,$nip)
  ->isType('', 'NULL')
  ->isType('', 'stdClass');
  
$c->VMulta($cuenta,'')
  ->isType('', 'NULL')
  ->isType('', 'stdClass');
  
$quejas=$c->ListarQuejas()->getResult();  

foreach($quejas as $queja)
	var_dump($queja);

$escs = $c->ListarEscuelas($biblioteca)->getResult();

//var_dump($escs);

foreach($escs->item as $esc)
	//foreach($esc as $e)
		var_dump($esc->item);
		//var_dump($e->toArray());



  




